From: YAMAMOTO Mitsuharu Date: Mon, 16 Apr 2007 03:09:33 +0000 (+0000) Subject: (mem_insert): Set min_heap_address and max_heap_address X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~816 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a143eeacfd792e312c450ea40661cfcfff63d574;p=emacs.git (mem_insert): Set min_heap_address and max_heap_address if they are not yet initialized. --- diff --git a/src/alloc.c b/src/alloc.c index 5cf22eb62e7..68b490f98b5 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -3615,9 +3615,9 @@ mem_insert (start, end, type) { struct mem_node *c, *parent, *x; - if (start < min_heap_address) + if (min_heap_address == NULL || start < min_heap_address) min_heap_address = start; - if (end > max_heap_address) + if (max_heap_address == NULL || end > max_heap_address) max_heap_address = end; /* See where in the tree a node for START belongs. In this